fix(miner): printHelp() omits the working deny-hooks subcommand - #8933
Conversation
|
Superagent didn't find any vulnerabilities or security issues in this PR. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #8933 +/- ##
==========================================
- Coverage 90.56% 90.55% -0.01%
==========================================
Files 96 97 +1
Lines 22490 22498 +8
Branches 3884 3886 +2
==========================================
+ Hits 20367 20374 +7
Misses 1945 1945
- Partials 178 179 +1
Flags with carried forward coverage won't be shown. Click here to find out more.
|
|
Tip ✅ LoopOver review result - approve/merge recommendedReview updated: 2026-07-26 14:02:01 UTC
Review summary Nits — 4 non-blocking
Decision drivers
Context & advisory signals — never blocks the verdict
Linked issue satisfactionAddressed Review context
Contributor next steps
Signal definitions
🧪 Chat with LoopOverAsk LoopOver a question about this PR directly in a comment — grounded only in the same cached, public-safe facts shown above, never a new claim.
Full command reference: https://loopover.ai/docs/loopover-commands 🧪 Experimental — new and may change. Decision record
🟩 Safe / merged · 🟦 Advisory · 🟨 Held for review · 🟥 Blocked / closed 💰 Earn for open-source contributions like this. Gittensor lets GitHub contributors earn for the work they already do — register to start earning →. Checked by LoopOver, a quiet PR intelligence layer for OSS maintainers.
|
Summary
deny-hooksis a fully working top-level CLI subcommand (packages/loopover-miner/bin/loopover-miner.ts:174, dispatched viarunDenyHooks, wired since #8806) but is the only registered subcommand absent frompackages/loopover-miner/lib/cli.ts'sprintHelp()usage text -- every other subcommand (queue,claim,ledger,plan,governor,calibration,state,orb export,tenant,purge, ...) is listed there. An operator runningloopover-miner --helpcannot discover the command exists.Deliverables
printHelp()includes adeny-hooksusage line describing its real subcommands (checkdeny-hooks-cli.tsfor the actual subcommand names to document accurately)printHelp()'s output contains the stringdeny-hooks(extend the existing help-text test if one exists, or add one)All of the above Deliverables are required in the same PR unless the deliverable text itself states otherwise.
Test plan
packages/loopover-miner/**-- 99%+ Codecov patch target. The new/updated test must assert the exact substring is present in printHelp's output, not just that the function runs.Fixes #8851